/*
 * Copyright 2013-2015 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xdtech.hotel.protocol.manager;

/**
 * 
 * @author max.zheng
 * @create 2015-4-19上午10:28:42
 * @since 1.0
 * @see
 */
public class OperationOption {
	
	public OperationOption() {
		super();
	}
	
	/**
	 * 音乐和电视
	 * @param type
	 * @param id
	 * @param cmd
	 * @param power
	 * @param volume
	 * @param channel
	 */
	public static OperationOption createTvOrMusic(String type, String id, String cmd, String power,
			String volume, String channel) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.power = power;
		operationOption.volume = volume;
		operationOption.channel = channel;
		return operationOption;
	}
	/**
	 * 时间
	 * @param id
	 * @param cmd
	 * @param year
	 * @param month
	 * @param day
	 * @param hour
	 * @param minute
	 */
	public static OperationOption createTime(String type,String id, String cmd, String year, String month,
			String day, String hour, String minute) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.year = year;
		operationOption.month = month;
		operationOption.day = day;
		operationOption.hour = hour;
		operationOption.minute = minute;
		return operationOption;
	}
	/**
	 * 空调
	 * @param type
	 * @param id
	 * @param cmd
	 * @param power
	 * @param mode
	 * @param fan
	 * @param tset
	 */
	public static OperationOption createAc(String type, String id, String cmd, String power,
			String mode, String fan, String tset) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.power = power;
		operationOption.mode = mode;
		operationOption.fan = fan;
		operationOption.tset = tset;
		return operationOption;
	}
	/**
	 * 节点
	 * @param type
	 * @param id
	 * @param cmd
	 * @param statue
	 * @param delay
	 */
	public static OperationOption createNode(String type, String id, String cmd, String statue,
			String delay) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.statue = statue;
		operationOption.delay = delay;
		return operationOption;
	}

	/**
	 * 调光
	 * 
	 * @author max.zheng
	 * @create 2015-4-19上午10:50:42
	 * @modified by
	 * @param type
	 * @param id
	 * @param cmd
	 * @param statue
	 * @param delay
	 * @param value
	 * @return
	 */
	public static OperationOption createDimmer(String type, String id, String cmd, String statue,
			String delay, String value) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.statue = statue;
		operationOption.delay = delay;
		operationOption.value = value;
		return operationOption;
	}

	/**
	 * 按键
	 * 
	 * @author max.zheng
	 * @create 2015-4-19上午10:51:51
	 * @modified by
	 * @param type
	 * @param id
	 * @param cmd
	 * @param statue
	 * @param delay
	 * @return
	 */
	public static OperationOption createIkey(String type, String id, String cmd, String statue,
			String delay) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.statue = statue;
		operationOption.delay = delay;
		return operationOption;
	}
	
	/**
	 * 卡
	 * 
	 * @author max.zheng
	 * @create 2015-4-19上午10:53:06
	 * @modified by
	 * @param type
	 * @param id
	 * @param cmd
	 * @param method
	 * @param data
	 * @return
	 */
	public static OperationOption createCard(String type, String id, String cmd, String method,
			String data) {
		OperationOption operationOption = new OperationOption();
		operationOption.type = type;
		operationOption.id = id;
		operationOption.cmd = cmd;
		operationOption.method = method;
		operationOption.data = data;
		return operationOption;
	}


	private String type;
	private String id;
	private String cmd;
	//电视
	//音乐
	private String power;
	private String volume;
	private String channel;
	private String input;
	
	//时间
	private String year;
	private String month;
	private String day;
	private String hour;
	private String minute;
	//空调
	private String mode;
	private String fan;
	private String tset;
	
	//节点
	private String statue;
	private String delay;
	
	private String value;
	
	//卡
	private String method;
	private String data;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCmd() {
		return cmd;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	public String getPower() {
		return power;
	}
	public void setPower(String power) {
		this.power = power;
	}
	public String getVolume() {
		return volume;
	}
	public void setVolume(String volume) {
		this.volume = volume;
	}
	public String getChannel() {
		return channel;
	}
	public void setChannel(String channel) {
		this.channel = channel;
	}
	public String getInput() {
		return input;
	}
	public void setInput(String input) {
		this.input = input;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getMonth() {
		return month;
	}
	public void setMonth(String month) {
		this.month = month;
	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	public String getHour() {
		return hour;
	}
	public void setHour(String hour) {
		this.hour = hour;
	}
	public String getMinute() {
		return minute;
	}
	public void setMinute(String minute) {
		this.minute = minute;
	}
	public String getMode() {
		return mode;
	}
	public void setMode(String mode) {
		this.mode = mode;
	}
	public String getFan() {
		return fan;
	}
	public void setFan(String fan) {
		this.fan = fan;
	}
	public String getTset() {
		return tset;
	}
	public void setTset(String tset) {
		this.tset = tset;
	}
	public String getStatue() {
		return statue;
	}
	public void setStatue(String statue) {
		this.statue = statue;
	}
	public String getDelay() {
		return delay;
	}
	public void setDelay(String delay) {
		this.delay = delay;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	
	
	
	
	
	
}
